from django.conf.urls import patterns, include, url
from newsite.current_datetime import current_datetime,hours_ahead,request_item
from books.views import search_form,search
from contact.views import contact
from django.contrib import admin

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
admin.autodiscover()

urlpatterns = patterns('',
    (r'^time/$', current_datetime),
    (r'^item/$', request_item),
    (r'^search-form/$', search_form),
#    (r'^contact_form/$', contact_form),
    (r'^contact/$', contact),
    (r'^search/$', search),
    (r'^time/plus/(\d{1,2})/$', hours_ahead),
    # Examples:
    # url(r'^$', 'newsite.views.home', name='home'),
    # url(r'^newsite/', include('newsite.foo.urls')),

    # Uncomment the admin/doc line below to enable admin documentation:
#    url(r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    url(r'^admin/', include(admin.site.urls)),
)
